From fee90920fad7f7f7d77eb9921f252dc9481b5134 Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Thu, 13 Jul 2006 11:25:36 -0400 Subject: [PATCH] [powerpc] xencomm: print function names so we can tell which one failed Signed-off-by: Jimi Xenidis --- xen/arch/powerpc/usercopy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xen/arch/powerpc/usercopy.c b/xen/arch/powerpc/usercopy.c index 667c90eaed..542e70d8b8 100644 --- a/xen/arch/powerpc/usercopy.c +++ b/xen/arch/powerpc/usercopy.c @@ -86,7 +86,8 @@ xencomm_copy_from_guest(void *to, const void *from, unsigned int n, /* first we need to access the descriptor */ desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)from); if (desc->magic != XENCOMM_MAGIC) { - printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic); + printk("%s: error: %p magic was 0x%x\n", + __func__, desc, desc->magic); return n; } @@ -153,7 +154,7 @@ xencomm_copy_to_guest(void *to, const void *from, unsigned int n, /* first we need to access the descriptor */ desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)to); if (desc->magic != XENCOMM_MAGIC) { - printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic); + printk("%s error: %p magic was 0x%x\n", __func__, desc, desc->magic); return n; } @@ -206,7 +207,7 @@ void xencomm_add_offset(void *handle, unsigned int bytes) /* first we need to access the descriptor */ desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)handle); if (desc->magic != XENCOMM_MAGIC) { - printk("xencomm error: %p magic was 0x%x\n", desc, desc->magic); + printk("%s error: %p magic was 0x%x\n", __func__, desc, desc->magic); return; } -- 2.30.2